package frame;

import javax.swing.JFrame;
import javax.swing.SwingUtilities;

public class FrameDemo {
	private JFrame frame;
	public FrameDemo(){
		frame=new JFrame();
		frame.setSize(400, 300);
		frame.setVisible(true);
		frame.setLocation(300, 130);
		frame.setTitle("不继承");
		frame.setDefaultCloseOperation(frame.EXIT_ON_CLOSE);
	}
	
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			
			@Override
			public void run() {
				new FrameDemo();
			}
		});
	}
}
